<template>
    <div>
        <Title title="资料管理"></Title>
        <div class="main">
<!--            查询-->
            <InformationQuery ></InformationQuery>
           <div class="bbx">
               <div @click="wen" class="shang">
                   <img src="../assets/images/添加@3x.png" alt="">
                   <p>文件上传</p>
               </div>
               <uploadchange style="margin: 16px 0" class="up"></uploadchange>
           </div>
            <div class="hr"></div>
<!--            数据列表-->
            <Infomationblock v-if="!$store.state.show"></Infomationblock>
            <InfomationThumbnail v-else></InfomationThumbnail>
            <Popup class="pop"></Popup>
        </div>
    </div>
</template>

<script>
    let pop =document.getElementsByClassName("pop")
    import Infomationblock from "../components/Block/Infomationblock";
    import Title from "../components/title"
    import InformationQuery from "../components/Query/InformationQuery";
    import uploadchange from "../components/UploadChange";
    import Popup from "../components/popup/popup";
    import InfomationThumbnail from "../components/Thum/InfomationThumbnail";

    export default {
        name: 'Home',
        data() {
            return {
            };
        },
        created() {
            this.$store.commit("changeVisable",false)
        },
        methods: {
            wen(){
                pop[0].style.display="block"
            },

        },
        components: {
            Title,
            InformationQuery,
            uploadchange,
            Popup,
            Infomationblock,
            InfomationThumbnail
        }
    }
</script>

<style scoped lang="less">
.main {
    width: 1136px;
    height: 758px;
    background: #FFFFFF;
    border-radius: 2px;
    border: 1px solid #E9E9E9;
    padding: 24px;
    box-sizing: border-box;

}
    .hr{
        width: 1088px;
        height: 1px;
        background: #E9E9E9;
    }


    .bbx {
        height: 64px;
        .shang {
            width: 106px;
            height: 32px;
            background-color: rgba(24, 144, 255, 1);
            float: left;
            margin-top: 16px;
            color: white;
            cursor: pointer;
            img{
                float: left;
                width: 14px;
                height: 14px;
                margin-left: 14px;
                margin-top: 9px;
            }
            p{
                float:left;
                margin-left: 4px;
                margin-top: 5px;
            }
        }

        .up {
            float: left;
        }
    }
</style>
